package com.aididi.service.impl;

import com.aididi.annotation.LogAnnotation;
import com.aididi.dao.SysLogMapper;
import com.aididi.entity.SysLog;
import com.aididi.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: zx.xu
 * @Description:
 */
@Service
public class SysLogServiceImpl implements ISysLogService {

    @Autowired
    private SysLogMapper sysLogMapper;

    /**
     * 插入日志
     * @param entity
     * @return
     */
    @Override
    public int insertLog(SysLog entity) {
        return sysLogMapper.insert(entity);
    }
}
